/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jule.clases;

/**
 *
 * @author Administrador
 */
public class relation {

    public relation() {
    }

     @Override
      public String toString()
    {
        return this.getName();
    }
    
    
    private String name;

    /**
     * Get the value of name
     *
     * @return the value of name
     */
    public String getName() {
        return name;
    }

    /**
     * Set the value of name
     *
     * @param name new value of name
     */
    public void setName(String name) {
        this.name = name;
    }

    
        private String parentTable;

    /**
     * Get the value of parentTable
     *
     * @return the value of parentTable
     */
    public String getParentTable() {
        return parentTable;
    }

    /**
     * Set the value of parentTable
     *
     * @param parentTable new value of parentTable
     */
    public void setParentTable(String parentTable) {
        this.parentTable = parentTable;
    }
    private String childTable;

    /**
     * Get the value of childTable
     *
     * @return the value of childTable
     */
    public String getChildTable() {
        return childTable;
    }

    /**
     * Set the value of childTable
     *
     * @param childTable new value of childTable
     */
    public void setChildTable(String childTable) {
        this.childTable = childTable;
    }

    
        private String parentKey;

    /**
     * Get the value of parentKey
     *
     * @return the value of parentKey
     */
    public String getParentKey() {
        return parentKey;
    }

    /**
     * Set the value of parentKey
     *
     * @param parentKey new value of parentKey
     */
    public void setParentKey(String parentKey) {
        this.parentKey = parentKey;
    }

        private String childKey;

    /**
     * Get the value of childKey
     *
     * @return the value of childKey
     */
    public String getChildKey() {
        return childKey;
    }

    /**
     * Set the value of childKey
     *
     * @param childKey new value of childKey
     */
    public void setChildKey(String childKey) {
        this.childKey = childKey;
    }


    // we add description for the text field, for the combos
    protected String descriptionChild;

    /**
     * Get the value of descriptionChild
     *
     * @return the value of descriptionChild
     */
    public String getDescriptionChild() {
        return descriptionChild;
    }

    /**
     * Set the value of descriptionChild
     *
     * @param descriptionChild new value of descriptionChild
     */
    public void setDescriptionChild(String descriptionChild) {
        this.descriptionChild = descriptionChild;
    }

    protected String descriptionParent;

    /**
     * Get the value of descriptionParent
     *
     * @return the value of descriptionParent
     */
    public String getDescriptionParent() {
        return descriptionParent;
    }

    /**
     * Set the value of descriptionParent
     *
     * @param descriptionParent new value osf descriptionParent
     */
    public void setDescriptionParent(String descriptionParent) {
        this.descriptionParent = descriptionParent;
    }

//     // tipos de campos que aceptamos...
//    public enum _cardinality {
//        oneToOne,oneToMany,manyToMany
//    };
//
//    protected _cardinality cardinality;
//
//    /**
//     * Get the value of cardinality
//     *
//     * @return the value of cardinality
//     */
//    public _cardinality getCardinality() {
//        return cardinality;
//    }
//
//    /**
//     * Set the value of cardinality
//     *
//     * @param cardinality new value of cardinality
//     */
//    public void setCardinality(_cardinality cardinality) {
//        this.cardinality = cardinality;
//    }
//
//
//    protected boolean checkExistingDataBeforeCreate;
//
//    /**
//     * Get the value of checkExistingDataBeforeCreate
//     *
//     * @return the value of checkExistingDataBeforeCreate
//     */
//    public boolean isCheckExistingDataBeforeCreate() {
//        return checkExistingDataBeforeCreate;
//    }
//
//    /**
//     * Set the value of checkExistingDataBeforeCreate
//     *
//     * @param checkExistingDataBeforeCreate new value of checkExistingDataBeforeCreate
//     */
//    public void setCheckExistingDataBeforeCreate(boolean checkExistingDataBeforeCreate) {
//        this.checkExistingDataBeforeCreate = checkExistingDataBeforeCreate;
//    }


}
